﻿// (c) Copyright Fernando Cerqueira.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.

using System.ComponentModel;
using Microsoft.Windows.Design.Metadata;

namespace DevPhone.Controls.Design
{
    class DatePickerBoxMetadata : AttributeTableBuilder
    {
        public DatePickerBoxMetadata()
        {
            AddCustomAttributes(typeof(DatePickerBox), new DescriptionAttribute("Represents a control that allows the user to choose a date (day/month/year)."));

            AddCustomAttributes(typeof(DatePickerBox), "ShowPart", new CategoryAttribute(MetadataStore.DateTimePickerProperties));
            AddCustomAttributes(typeof(DatePickerBox), "ShowPart", new DescriptionAttribute("Gets or sets the part of to choose."));

            AddCustomAttributes(typeof(DatePickerBox), "ShowIcon", new CategoryAttribute(MetadataStore.DateTimePickerProperties));
            AddCustomAttributes(typeof(DatePickerBox), "ShowIcon", new DescriptionAttribute("Gets or sets the show Icon in control."));

            AddCustomAttributes(typeof(DatePickerBox), "ExternalIcon", new CategoryAttribute(MetadataStore.DateTimePickerProperties));
            AddCustomAttributes(typeof(DatePickerBox), "ExternalIcon", new DescriptionAttribute("Gets or sets the external icon to show in control."));

            AddCustomAttributes(typeof(DatePickerBox), "Header", new TypeConverterAttribute(typeof(StringConverter)));
            AddCustomAttributes(typeof(DatePickerBox), "Header", new CategoryAttribute(MetadataStore.DateTimePickerProperties));
            AddCustomAttributes(typeof(DatePickerBox), "Header", new DescriptionAttribute("Gets or sets the header in control."));

            AddCustomAttributes(typeof(DatePickerBox), "HeaderTemplate", new CategoryAttribute(MetadataStore.DateTimePickerProperties));
            AddCustomAttributes(typeof(DatePickerBox), "HeaderTemplate", new DescriptionAttribute("Gets or sets the template used to display the control's header."));
        }
    }
}
